Improve touch-screen support on PGTK
authorPo Lu <luangruo@yahoo.com>
Sat, 1 Jun 2024 13:27:51 +0000 (21:27 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 1 Jun 2024 13:33:19 +0000 (21:33 +0800)
commit7af5d6fc9a352d4f53f8e48a6bc9ae9a3bf235a3
tree67417b08d0a225611aec934023478a28a32c5316
parentb4a93b4484c7406a395f1c1f3e8d1236138ba2a9
Improve touch-screen support on PGTK

* lisp/touch-screen.el (touch-screen-translate-touch): Do not
prepend posn if the symbol is such that keyboard.c will do so
immediately after returning.

* src/pgtkterm.c (pgtk_toolkit_position): Remove mistakenly
ported code.
(pgtk_create_terminal): Remove toolkit_position hook.
(motion_notify_event, button_event): Ignore emulated pointer
events, and apply an additional test to circumvent a GDK
oversight.
(touch_event_cb): Correct return type, and provide touch
sequence initialization and removal events as
`last_click_event's.
lisp/touch-screen.el
src/pgtkterm.c